package org.spring.mybatis.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.spring.mybatis.model.UserInfo;

import java.util.List;

@Mapper
public interface UserInfoXMlMapper {
    List<UserInfo> queryAllUser();

    Integer insertUser(UserInfo userInfo);

    Integer deleteUser(Integer id);
    Integer deleteUser2(String username);

    Integer updateUser(UserInfo userInfo);

    //TODO 标签
    Integer inserUserByCondition(UserInfo userInfo);
    Integer insertUserByCondition2(UserInfo userInfo);

    List<UserInfo> queryByCondition(UserInfo userInfo);

    Integer updateUserByCondition(UserInfo userInfo);

    // 根据多个userid, 删除用户数据
    int deleteByIds(List<Integer> ids);
}
